﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Mvc;
using System.Web;

namespace yd.ControllerBase
{
    /// <summary>
    /// 控制器基类 
    /// </summary>
    public abstract class BaseController : Controller
    {
        /// <summary>
        /// 重写方法，在运行Action方法前调用
        /// </summary>
        /// <param name="filterContext">上下文信息</param>
        protected override void OnActionExecuting(ActionExecutingContext filterContext)
        {
            HttpRequestBase req = filterContext.RequestContext.HttpContext.Request;
            HttpResponseBase rsp = filterContext.RequestContext.HttpContext.Response;

            // filterContext.RouteData.Values["controller"]; 当前控制器

            // filterContext.RouteData.Values["action"];  

            base.OnActionExecuting(filterContext);
        }
    }
}
